import java.util.Scanner;

/**
 * Created by dllo on 18/3/28.
 */
public class Question02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("第1个数:");

        int a = scanner.nextInt();
        System.out.println("第2个数:");
        int b = scanner.nextInt();
        System.out.println("第3个数:");
        int c = scanner.nextInt();

        int max = a;
        if (max < b) {
            max = b;
        }
        if (max < c) {
            max = c;
        }
        System.out.println("最大值:" + max);
        int min = a;
        if (min > b) {
            min = b;
        }
        if (min > c) {
            min = c;
        }
        System.out.println("最小值:" + min);
    }
}
    /*      // if 的第三种形式
        // if(条件一){
        // 代码块1
        // } else if(条件二){
        // 代码块2
        // }.....
        if (a >= b && b >= c) {
            // a b c => 7,6,5
            // 8 ,8, 6  => a,b,c
            System.out.println(a + "," + c);
        } else if (a >= c && c >= b){
            System.out.println(a + "," + b);
        }

    */




